﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CreditCard" targetNamespace="http://tempuri.org/CreditCard.xsd" xmlns:mstns="http://tempuri.org/CreditCard.xsd" xmlns="http://tempuri.org/CreditCard.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="EAppointmentConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="EAppointmentConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.EAppointmentConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TB_CreditCardTableAdapter" GeneratorDataComponentClassName="TB_CreditCardTableAdapter" Name="TB_CreditCard" UserDataComponentName="TB_CreditCardTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.TB_CreditCard" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT   TB_CreditCard.*
FROM      TB_CreditCard </CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="CreditCard_ID" DataSetColumn="CreditCard_ID" />
              <Mapping SourceColumn="CreditCard_UserID" DataSetColumn="CreditCard_UserID" />
              <Mapping SourceColumn="CreditCard_Type" DataSetColumn="CreditCard_Type" />
              <Mapping SourceColumn="CreditCard_Location" DataSetColumn="CreditCard_Location" />
              <Mapping SourceColumn="CreditCard_Date" DataSetColumn="CreditCard_Date" />
              <Mapping SourceColumn="CreditCard_PubDate" DataSetColumn="CreditCard_PubDate" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_Appoint_CreditCard" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="Appoint_CreditCard" Modifier="Public" Name="Appoint_CreditCard" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="Appoint_CreditCard">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_Appoint_CreditCard</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@UserID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Type" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Location" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@Date" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="InputOutput" ParameterName="@Result" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="EAppointmentConnectionString (Web.config)" DbObjectName="EAppointment.dbo.Proc_HandleAppoint_CreditCard" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="HandleAppoint_CreditCard" Modifier="Public" Name="HandleAppoint_CreditCard" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="HandleAppoint_CreditCard">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.Proc_HandleAppoint_CreditCard</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="tinyint" DbType="Byte" Direction="Input" ParameterName="@NewStatus" Precision="3" ProviderType="TinyInt" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@AppointID" Precision="19" ProviderType="BigInt" Scale="0" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CreditCard" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="CreditCard" msprop:Generator_UserDSName="CreditCard">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="TB_CreditCard" msprop:Generator_TableClassName="TB_CreditCardDataTable" msprop:Generator_TableVarName="tableTB_CreditCard" msprop:Generator_TablePropName="TB_CreditCard" msprop:Generator_RowDeletingName="TB_CreditCardRowDeleting" msprop:Generator_RowChangingName="TB_CreditCardRowChanging" msprop:Generator_RowEvHandlerName="TB_CreditCardRowChangeEventHandler" msprop:Generator_RowDeletedName="TB_CreditCardRowDeleted" msprop:Generator_UserTableName="TB_CreditCard" msprop:Generator_RowChangedName="TB_CreditCardRowChanged" msprop:Generator_RowEvArgName="TB_CreditCardRowChangeEvent" msprop:Generator_RowClassName="TB_CreditCardRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CreditCard_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnCreditCard_ID" msprop:Generator_ColumnPropNameInRow="CreditCard_ID" msprop:Generator_ColumnPropNameInTable="CreditCard_IDColumn" msprop:Generator_UserColumnName="CreditCard_ID" type="xs:long" />
              <xs:element name="CreditCard_UserID" msprop:Generator_ColumnVarNameInTable="columnCreditCard_UserID" msprop:Generator_ColumnPropNameInRow="CreditCard_UserID" msprop:Generator_ColumnPropNameInTable="CreditCard_UserIDColumn" msprop:Generator_UserColumnName="CreditCard_UserID" type="xs:long" />
              <xs:element name="CreditCard_Type" msprop:Generator_ColumnVarNameInTable="columnCreditCard_Type" msprop:Generator_ColumnPropNameInRow="CreditCard_Type" msprop:Generator_ColumnPropNameInTable="CreditCard_TypeColumn" msprop:Generator_UserColumnName="CreditCard_Type" type="xs:int" />
              <xs:element name="CreditCard_Location" msprop:Generator_ColumnVarNameInTable="columnCreditCard_Location" msprop:Generator_ColumnPropNameInRow="CreditCard_Location" msprop:Generator_ColumnPropNameInTable="CreditCard_LocationColumn" msprop:Generator_UserColumnName="CreditCard_Location">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CreditCard_Date" msprop:Generator_ColumnVarNameInTable="columnCreditCard_Date" msprop:Generator_ColumnPropNameInRow="CreditCard_Date" msprop:Generator_ColumnPropNameInTable="CreditCard_DateColumn" msprop:Generator_UserColumnName="CreditCard_Date" type="xs:dateTime" />
              <xs:element name="CreditCard_PubDate" msprop:Generator_ColumnVarNameInTable="columnCreditCard_PubDate" msprop:Generator_ColumnPropNameInRow="CreditCard_PubDate" msprop:Generator_ColumnPropNameInTable="CreditCard_PubDateColumn" msprop:Generator_UserColumnName="CreditCard_PubDate" type="xs:dateTime" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:TB_CreditCard" />
      <xs:field xpath="mstns:CreditCard_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>